package com.ruoyi.manager.service.impl;

import com.ruoyi.manager.mapper.TeacherAnalysisMapper;
import com.ruoyi.manager.service.TeachAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class TeachAnalysisServiceImpl implements TeachAnalysisService {

    @Autowired
    TeacherAnalysisMapper teacherAnalysisMapper;

    @Override
    public List<Map<String, Object>> listClassesInfor() {
        return teacherAnalysisMapper.listClassesInfor();
    }

    @Override
    public List<Map<String,Object>> allClassCoreTaskComRateAndSubRate(){
        return teacherAnalysisMapper.allClassCoreTaskComRateAndSubRate();
    }
    @Override
    public List<Map<String,Object>> listOfFourtyPresentStudentInfo(){
        return teacherAnalysisMapper.listOfFourtyPresentStudentInfo();
    }

    @Override
    //在训各班级当周平均成绩
    public List<Map<String,Object>> listClassesAvgScore(){
        return teacherAnalysisMapper.listClassesAvgScore();
    };
    @Override
//当周学员成绩分类
    public Map<String,Double> scoreClassification(){
        return teacherAnalysisMapper.scoreClassification();
    };
    @Override
//所有在训班级当周总成绩和平均成绩
    public Map<String,Double> findAllClassesSumScoreAndAvgScore(){
        return teacherAnalysisMapper.findAllClassesSumScoreAndAvgScore();
    }
    @Override
    //当周所有班级学员核心作业完成率低于40%占比
    public Map<String,Double> findClassesCoreTaskFourtyPresentRate(){
        return teacherAnalysisMapper.findClassesCoreTaskFourtyPresentRate();
    }
    @Override
    //当周所有班级学员核心作业完成率高于80%占比
    public Map<String,Double> findClassesCoreTaskEigtyPresentRate(){
        return teacherAnalysisMapper.findClassesCoreTaskEigtyPresentRate();
    }
    @Override
    //核心作业完成率
    public Map<String,Double> findClassesCoreTaskCompleteRate(){
        return teacherAnalysisMapper.findClassesCoreTaskCompleteRate();
    }
    //当周所有班级学员核心提交率
    public Map<String,Double> findClassesCoreTaskSubmitRate(){
        return teacherAnalysisMapper.findClassesCoreTaskSubmitRate();
    }

    //项目经理发布考核次数
    public  List<Map<String,Object>> CoreSumOfMaster(){
        return teacherAnalysisMapper.CoreSumOfMaster();
    }
    //项目经理发布当周任务次数
    public  List<Map<String,Object>> CoreSumOfWeek(){
        return teacherAnalysisMapper.CoreSumOfWeek();
    }

}
